.mainNav{
   height:2.8em;
   width: 100%;
   background: -webkit-linear-gradient(left,#2e59a1, #97d8f3); /* Safari 5.1 - 6.0 */
   background: -o-linear-gradient(right,#2e59a1, #97d8f3); /* Opera 11.1 - 12.0 */
   background: -moz-linear-gradient(right,#2e59a1, #97d8f3); /* Firefox 3.6 - 15 */
   background: linear-gradient(to right,#2e59a1, #97d8f3); /* 标准的语法 */
    overflow-x: scroll ;
    overflow-y: hidden;
    padding-top: 0.6em;
}
.mainNav>ul{
    display: flex;
    flex-direction: row;  
    
}
.mainNav>ul>li{
    width: 4rem;
    text-align: center;
    height: 100%;
    flex-shrink: 0;
    margin-left: 0.5em;
    margin-right: 0.5em;
}
.mainNav>ul>li>a{
    display: block;
    height: 140%;
    width: 140%;
    color: #ffffff;

}
/* .mainNav>ul>li>a:hover,.mainNav>ul>li>active{
    background-color: #fff;
    border-radius: 1em;
    -webkit-border-radius: 1em;
    -moz-border-radius: 1em;
    -ms-border-radius: 1em;
    -o-border-radius: 1em;
    color: #2e59a1;
    height: 140%;
    width: 140%;
} */
.active{
    background-color: #fff;
    border-radius: 1em;
    -webkit-border-radius: 1em;
    -moz-border-radius: 1em;
    -ms-border-radius: 1em;
    -o-border-radius: 1em;
    color: #2e59a1 !important;
    height: 140%;
    width: 140%;
}